﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ccit.Utils
{
    /// <summary>
    /// DictLib 类型比较器(用于Linq 操作tim)
    /// </summary>
    public class DictComparer : IEqualityComparer<DictLib>
    {
        #region IEqualityComparer<DictLib> 成员

        public bool Equals(DictLib x, DictLib y)
        {
            if ((null == x) || (null == y)) return false;

            if (x.dictValue == y.dictValue)
                return true;

            return false;
        }

        public int GetHashCode(DictLib obj)
        {
            return obj.ToString().GetHashCode();
        }

        #endregion
    }
}
